package com.woniuxy.purchase.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.purchase.entity.dto.AddSupplierDTO;
import com.woniuxy.purchase.entity.dto.SelectPurchaseDTO;
import com.woniuxy.purchase.entity.pojo.BuyPurchase;
import com.woniuxy.purchase.entity.vo.AllPurchaseVO;
import com.woniuxy.purchase.entity.vo.PurchaseDetailsVO;

import java.util.List;

public interface BuyPurchaseService {
    void updatePurchaseStateById(Integer state, Integer id);

    Page<BuyPurchase> findPurchaseByCondition(SelectPurchaseDTO dto);

    List<PurchaseDetailsVO> findDemandDetails(Integer id);


    Integer updatePurchaseById(AddSupplierDTO dto);

    List<AllPurchaseVO> findAllPurchase(Integer id);

}
